package cc.wanforme.st.server.base.mapper;

import cc.wanforme.st.server.base.entity.Role;

import java.util.List;

import org.springframework.lang.Nullable;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wanne
 * @since 2022-03-03
 */
public interface RoleMapper extends BaseMapper<Role> {

	List<Role> listByName(@Nullable String name);
	
	/** 角色代码精准查询
	 * @param roleCode
	 * @return
	 */
	Role selectByRoleCode(String roleCode);
	
}
